var i = require("../../../uv-ui-tools/libs/mixin/mpMixin.js"), t = require("../../../uv-ui-tools/libs/mixin/mixin.js"), r = require("./props.js"), n = require("../../../../common/vendor.js");

require("../../../uv-ui-tools/libs/function/index.js"), require("../../../uv-ui-tools/libs/function/test.js"), 
require("../../../uv-ui-tools/libs/function/digit.js"), require("../../../uv-ui-tools/libs/util/route.js"), 
require("../../../uv-ui-tools/libs/function/debounce.js"), require("../../../uv-ui-tools/libs/function/throttle.js");

var e = {
    name: "uv-swiper-indicator",
    mixins: [ i.mpMixin, t.mixin, r.props ],
    data: function() {
        return {
            lineWidth: 22
        };
    },
    computed: {
        lineStyle: function() {
            var i = {};
            return i.width = this.$uv.addUnit(this.lineWidth), i.transform = "translateX(".concat(this.$uv.addUnit(this.current * this.lineWidth), ")"), 
            i.backgroundColor = this.indicatorActiveColor, i;
        },
        dotStyle: function() {
            var i = this;
            return function(t) {
                var r = {};
                return r.backgroundColor = t === i.current ? i.indicatorActiveColor : i.indicatorInactiveColor, 
                r;
            };
        }
    }
}, o = n._export_sfc(e, [ [ "render", function(i, t, r, e, o, u) {
    return n.e({
        a: "line" === i.indicatorMode
    }, "line" === i.indicatorMode ? {
        b: n.s(u.lineStyle),
        c: n.n("uv-swiper-indicator__wrapper--".concat(i.indicatorMode)),
        d: i.$uv.addUnit(o.lineWidth * i.length),
        e: i.indicatorInactiveColor
    } : {}, {
        f: "dot" === i.indicatorMode
    }, "dot" === i.indicatorMode ? {
        g: n.f(i.length, function(t, r, e) {
            return {
                a: r,
                b: n.n(r === i.current && "uv-swiper-indicator__wrapper__dot--active"),
                c: n.s(u.dotStyle(r))
            };
        })
    } : {});
} ], [ "__scopeId", "data-v-143e0992" ] ]);

wx.createComponent(o);